Android Studio:Caused by: java.lang.ClassNotFoundException: Didn‘t find class “...“on path: DexPath* 您所在的位置:网站首页 android javalangclassnotfoundexception Android Studio:Caused by: java.lang.ClassNotFoundException: Didn‘t find class “...“on path: DexPath*

Android Studio:Caused by: java.lang.ClassNotFoundException: Didn‘t find class “...“on path: DexPath*

2023-01-29 18:18| 来源: 网络整理| 查看: 265

Android Studio:Caused by: java.lang.ClassNotFoundException: Didn‘t find class “...“on path: DexPath* 原创

liuzhen007 2021-07-06 13:51:04 ©著作权

文章标签 Android 文章分类 Android 移动开发

©著作权归作者所有:来自51CTO博客作者liuzhen007的原创作品,请联系作者获取转载授权,否则将追究法律责任

目录

问题

解决

问题

项目报错:

 Caused by: java.lang.ClassNotFoundException:  Didn't find class "com.demo.test.MyApplication" on path:  DexPathList[ [zip file "/data/app/com.demo.administrator.aa-1/base.apk"], nativeLibraryDirectories= [/data/app/com.demo.administrator.aa-1/lib/arm64, /system/lib64, /vendor/lib64, /system/vendor/lib64, /product/lib64]]

app目录下的build.gradle配置文件关于架构的信息:

android { defaultConfig { ndk { abiFilters "armeabi-v7a" abiFilters "arm64-v8a" } } } 解决

报错信息是lib64位库有问题,所以可以考虑使用armv7包。

android { defaultConfig { ndk { abiFilters "armeabi-v7a" } } }

修改后,问题解决。

这里仅提供了一种规避问题的方法,如果想了解64位库具体有什么问题,还需要深入分析,可以考虑依赖的编译库是否存在架构不统一的问题。 

打赏 收藏 评论 分享 举报

上一篇:docker容器端口占用处理的一般方法

下一篇:不能将iMovie 剪辑安装在“未命名”上,因为需要macOS v10.15.6或更高版本。



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有